﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Reports.aspx.cs" Inherits="GAIA_IU.Reports" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:TextBox ID="codCliente" runat="server" Visible="False"></asp:TextBox>
    <br />
    <asp:Label ID="aviso_label" runat="server" Text=""></asp:Label>
    <br />
    <br />
    <asp:Button ID="btn_back" runat="server" Text="Atras" 
        onclick="btn_back_Click" />
    <br />
    <br />
    <asp:GridView ID="gridEstudios" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="cod_estudio,codigo" DataSourceID="SqlDataSource1" Height="127px" 
        Width="780px" AllowPaging="True" 
        style="margin-top: 2px; text-align: center;" HorizontalAlign="Center">
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <Columns>
            <asp:BoundField DataField="cod_estudio" HeaderText="Estudio" 
                InsertVisible="False" ReadOnly="True" SortExpression="cod_estudio" >
            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:BoundField DataField="fecha" HeaderText="Fecha" ReadOnly="True" 
                SortExpression="fecha" >
            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:BoundField DataField="nombre" HeaderText="Nombre" ReadOnly="True" 
                SortExpression="nombre" >
            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:BoundField DataField="codigo" 
            HeaderText="Código" ReadOnly="True" 
                SortExpression="codigo" >
            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:BoundField>
            <asp:HyperLinkField DataNavigateUrlFields="cod_estudio" 
                DataNavigateUrlFormatString="~/Reportes/ReportesVista/ListadoGeoC5.aspx?codigo={0}" 
                HeaderText="Listado" NavigateUrl="~/Reportes/ReportesVista/ListadoGeoC5.aspx" 
                Target="_blank" Text="Ir">
            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:HyperLinkField>
            <asp:HyperLinkField DataNavigateUrlFields="cod_estudio" 
                DataNavigateUrlFormatString="~/Reportes/ReportesVista/ClasDiaGeoC2.aspx?codigo={0}" 
                HeaderText="ClasDia" NavigateUrl="~/Reportes/ReportesVista/ClasDiaGeoC2.aspx" 
                Target="_blank" Text="Ir">
            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:HyperLinkField>
            <asp:HyperLinkField DataNavigateUrlFields="cod_estudio" 
                DataNavigateUrlFormatString="~/Reportes/ReportesVista/ClasAreaGeoC3.aspx?codigo={0}" 
                HeaderText="ClasDiaArea" 
                NavigateUrl="~/Reportes/ReportesVista/ClasAreaGeoC3.aspx" Target="_blank" 
                Text="Ir">
            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:HyperLinkField>
            <asp:HyperLinkField DataNavigateUrlFields="cod_estudio" 
                DataNavigateUrlFormatString="~/Reportes/ReportesVista/ClasVolGeoC4.aspx?codigo={0}" 
                HeaderText="ClasDiaVol" NavigateUrl="~/Reportes/ReportesVista/ClasVolGeoC4.aspx" 
                Text="Ir" Target="_blank">
            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:HyperLinkField>
            <asp:HyperLinkField DataNavigateUrlFields="cod_estudio" 
                DataNavigateUrlFormatString="~/Reportes/ReportesVista/ReportGeoRef.aspx?codigo={0}" 
                HeaderText="GeoRef" NavigateUrl="~/Reportes/ReportesVista/ReportGeoRef.aspx" 
                Target="_blank" Text="Ir">
            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <ItemStyle HorizontalAlign="Center" />
            </asp:HyperLinkField>
            <asp:HyperLinkField DataNavigateUrlFields="cod_estudio" 
                DataNavigateUrlFormatString="WebForm2.aspx?codEstudio={0}" 
                HeaderText="EditarEstudio" Text="Editar" >
            <HeaderStyle HorizontalAlign="Center" />
            <ItemStyle HorizontalAlign="Center" />
            </asp:HyperLinkField>
        </Columns>
                        <PagerStyle BackColor="#2F6590" ForeColor="White" HorizontalAlign="Center" />
                    <SelectedRowStyle BackColor="#65C0ED" Font-Bold="True" ForeColor="#006699" />
                    <HeaderStyle BackColor="#808080" Font-Bold="False" ForeColor="White" HorizontalAlign="Left"/>
                    <EditRowStyle BackColor="#999999" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#0B4B81" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:GAIABD1ConnectionString2 %>" 
        SelectCommand="getEstudiosClientes" 
    SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:ControlParameter ControlID="codCliente" DefaultValue="*" 
                Name="cod_cliente" PropertyName="Text" Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
    <br />

    <script type="text/javascript">
        
    </script>
    </asp:Content>


